package com.yuanfeng.commoms.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("common/redis")
public class Demo {


    @Value("${spring.redis.host}")
    private static String redishost;
    @Value("${spring.redis.port}")
    private static Integer redisposrt;
    @Value("${spring.redis.password}")
    private static String redisPassword;

    @GetMapping("/user")
    public ResponseResult queryUser(){

        return ResponseResult.fail(Integer.valueOf(redishost),redisposrt.toString());

    }
}
